package com.github.niefy.modules.wx.service;

import com.github.niefy.modules.wx.result.WxMpDraftUploadResult;
import me.chanjar.weixin.common.error.WxErrorException;
import me.chanjar.weixin.mp.bean.draft.WxMpDraftArticles;
import me.chanjar.weixin.mp.bean.freepublish.WxMpFreePublishStatus;

import java.util.List;

public interface WxDraftService {


    /**
     * 添加图文草稿
     *
     * @param appid
     * @param articles
     * @return
     * @throws WxErrorException
     */
    WxMpDraftUploadResult draftUpload(String appid, WxMpDraftArticles articles)throws WxErrorException;

    String submit(String mediaId) throws WxErrorException;

    WxMpFreePublishStatus getPushStatus(String publishId) throws WxErrorException;

}
